# -*- mode: snippet -*-
# name: device cairo_pdf from grDevices
# key: cairo_pdf@grDevices
# key: pdf_cairo@grDevices
# key: device#cairo_pdf@grDevices
# contributor: Shuguang Sun
# expand-env: ((yas-wrap-around-region t))
# --
cairo_pdf(file = "$1", bg = \"${2:$$(yas-choose-value '("transparent" "white"))}\"${3:, family = \"${4:$$(yas-choose-value '("sans" "serif" "mono" "GB1"))}\"})

$0

invisible(dev.off())